import * as actionTypes from './actionTypes';
import * as filterTypes from './filterTypes';

export default function reducer(state = filterTypes.ALL, action) {
    switch(action.type) {
        case actionTypes.SET_FILTER: {
            return action.filter;
        }
        default:
            return state;
    }
}